<template>
<!--  主页界面-->
<div class="home">
  <el-form :inline="true" style="margin: 0;padding:0 ">
    <el-form-item style="margin: 0;padding:0 ;">
      <!--  账簿-->
      <el-card class="box-card" style="width: 200px;">
        <div slot="header" class="clearfix">
      <span >
        <p style="flood-color: white">账簿</p>

      </span>
          <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
        </div>
        <el-popover v-for="o in 4" :key="o" class="text item"
                    placement="right"
                    width="400"
                    trigger="click"
        >

          <el-table :data="gridData">
            <el-table-column width="150" property="date" label="日期"></el-table-column>
            <el-table-column width="100" property="name" label="姓名"></el-table-column>
            <el-table-column width="300" property="address" label="地址"></el-table-column>
          </el-table>
            <el-button slot="reference" style="width: 100%">{{'列表内容 ' + o +'click 激活'}}</el-button>



        </el-popover>
      </el-card>
    </el-form-item>
    <el-form-item>
      <!--  日程-->
      <el-card class="box-card">
        <div slot="header" class="clearfix">
      <span >
        <p style="flood-color: white">日程</p>

      </span>
          <el-button style="float: right; padding: 0px 0" type="text">操作按钮</el-button>
        </div>
        <div>
          {{ '今天似乎没有什么事可做' }}
        </div>
      </el-card>
    </el-form-item>
  </el-form>

<el-form :inline="true">
  <el-form-item style="width: 80%">
    <div ><el-input
        type="textarea"
        :autosize="{ minRows: 2, maxRows: 4}"
        placeholder="说点什么"
        v-model="input"
        style="width: 100%"
    >
    </el-input></div>

  </el-form-item>
  <el-form-item  >
    <el-button type="primary" icon="el-icon-upload2">发送</el-button>
  </el-form-item>
</el-form>



</div>
</template>

<script>
export default {
  name: "Home",
  data(){
    return{
      input:'',
      gridData: [{
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-04',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-03',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }]
    }
  }
}
</script>

<style scoped>
.home{
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.2);
  vertical-align: center;
  float: right;
  padding: 0;
  margin: 0;
  position: absolute;
}
.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}
.clearfix:after {
  clear: both
}

.box-card {
  /*width: 25%;*/
}
</style>